package com.bank.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import java.math.BigDecimal;

@Data
@ApiModel("还款信息")
public class RepayDTO {
    @ApiModelProperty(value = "账户ID", required = true)
    private Long transactionId;

    @ApiModelProperty(value = "密码", required = true)
    private String password;

    @ApiModelProperty(value = "借款金额", required = true)
    @Min(value = 1000, message = "借款金额必须大于等于1000")
    private BigDecimal repay;

    @ApiModelProperty(value = "借款原因", required = false)
    private String remark;
}
